/* eslint-disable */


//1.导入axios
import Vue from 'vue'
import axios from 'axios'
import VueAxios from 'vue-axios'
Vue.use(VueAxios, axios)

/* 创建instance实例 */
const instance = axios.create({
    baseURL:'http://toutiao.itheima.net',
    timeout:10000
})


/* 1.登录接口 */
function getLogin(mobile,code){
    return instance({
        url:'/v1_0/authorizations',
        method:'post',
        data:{
            mobile,//mobile:mobile
            code
        }
    })
}

//导出接口
export { getLogin }


